package com.cn.yds.bdy.dao.model;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@NoArgsConstructor
@AllArgsConstructor
@Data
@Entity
@Table(name = "user")
public class UserModel implements Serializable {

    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    @Column(name = "login_id")
    private String loginId;
    @Column(name = "name")
    private String name;
    @Column(name = "password")
    private String password;
    @Column(name = "academy")
    private String academy;
    @Column(name = "major")
    private String major;
    @Column(name = "grade")
    private String grade;
    @Column(name = "gender")
    private String gender;
    @Column(name = "role")
    private Integer role;
    @Column(name = "tel")
    private String tel;
    @Column(name = "research_direction")
    private String researchDirection;
    @Column(name = "academic_title")
    private String academicTitle;
    @Column(name = "description")
    private String description;
    @Column(name = "choose_status")
    private Integer chooseStatus;
    @Column(name = "status")
    private Integer status;
    @Column(name = "create_time")
    private Date createTime;
    @Column(name = "update_time")
    private Date updateTime;


}
